﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Ny.Ci.Core.Common;
using Ny.Ci.Core.Mentions;
using Ny.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Ny.Ci.Core.Suggestions
{
    public class Suggestion : MayBaseEntity
    {

        /// <summary>
        /// 标题
        /// </summary>
        [Required]
        public virtual string Title { set; get; }

        /// <summary>
        /// 内容
        /// </summary>
        [Required]
        public virtual string Content { set; get; }
        /// <summary>
        /// 是否重大
        /// </summary>
        public virtual bool? IsImportant { set; get; }
        /// <summary>
        /// 事项类别
        /// </summary>
        [Required]
        public virtual Guid? MentionTypeId { get; set; }
        [ForeignKey("MentionTypeId")]
        public virtual MentionType MentionType { get; set; }
        /// <summary>
        /// 成果
        /// </summary>
        [MaxLength]
        public virtual string Result { set; get; }
        /// <summary>
        /// 提出部门Id
        /// </summary>
        public virtual int? DepartmentId { set; get; }
        //提出部门
        public virtual string DepartmentName { set; get; }
        /// <summary>
        /// 提出人员Id
        /// </summary>
        [Required]
        public virtual int ProposeUserId { set; get; }
        /// <summary>
        /// 提出人员姓名
        /// </summary>
        [Required]
        public virtual int ProposeUserName { set; get; }
        /// <summary>
        /// 创建人名
        /// </summary>
        [Required]
        public virtual int CreateUserName { set; get; }
        [Required]
        public virtual int CreateUserId { set; get; }
        /// <summary>
        /// 提问入口
        /// </summary>
        [Required]
        public virtual LoginMethodEnum Entrance { set; get; }
        /// <summary>
        /// 状态
        /// </summary>
        public virtual SuggestionStatueEnum Statue { set; get; }
  
    }
}
